import request from '@/utils/request'

export function listAppVersion(query) {
  return request({
    url: '/sys/tenant/list',
    method: 'get',
    params: query
  })
}

export function createAppVersion(data) {
  return request({
    url: '/sys/tenant/create',
    method: 'post',
    data
  })
}

export function readAppVersion(data) {
  return request({
    url: '/sys/tenant/read/' + data.id,
    method: 'get'
  })
}

export function updateAppVersion(data) {
  return request({
    url: '/sys/tenant/update',
    method: 'post',
    data
  })
}

export function deleteAppVersion(data) {
  return request({
    url: '/sys/tenant/delete/' + data.id,
    method: 'delete'
  })
}

